package cn.catsdad.controller;

import cn.catsdad.DemoFeign;
import cn.catsdad.base.web.HttpResponse;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author xuyl
 * @version V1.0.0 2024/8/12
 * @since V100R001
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Resource
    private DemoFeign demoFeign;

    @GetMapping
    public HttpResponse<List<Object>> feignTest() {
        return demoFeign.pageQuery(1, 15);
    }

}
